package com.beardedhen.harmonybootstrap.api.view;

import ohos.global.resource.NotExistException;
import ohos.global.resource.WrongTypeException;

import java.io.IOException;

/**
 * Views which implement this interface allow the border to be dynamically displayed.
 */
public interface BorderView {

    /**
     * Sets border displayed.
     *
     * @param displayed the displayed
     * @throws NotExistException  the not exist exception
     * @throws WrongTypeException the wrong type exception
     * @throws IOException        the io exception
     */
    void setBorderDisplayed(boolean displayed) throws NotExistException, WrongTypeException, IOException;

    /**
     * Is border displayed.
     *
     * @return whether the border is displayed or not.
     */
    boolean isBorderDisplayed();
}
